<?php

$t = $_GET["t"];

if($t){
	
	if(preg_match('/\./',$t)){
		if (preg_match('/\s/',$t)) {
			$tmp1 = explode(" ",$t);
			$tmp = explode(".",$tmp1[0]);
			$tmp1 = explode(":",$tmp1[1]);
		}else{
			$tmp = explode(".",$t);
			$tmp1 = array();
		}
		
		if (count($tmp1)) {
			$h = $tmp1[0];
			$m = $tmp1[1];
			$s = $tmp1[2];
		}else{
			$h = $m = $s = 0;
		}
		
		$time = @mktime($h,$m,$s,$tmp[1],$tmp[0],$tmp[2])."<br />$t";
	}else{
		$time = date("d.m.Y H:i:s",$t);
	}
}else{
	$t = time();
	echo $t."<br />";
	$time = date("d.m.Y H:i:s",$t);
}
echo $time;

?>